package com.learning_paicoding.utils;

/**
 * @Author hph
 * @Date 2025/10/12 18:08
 **/
public enum StatusEnum {

    SUCCESS(0, "OK"),
    SERVER_ERROR(500, "服务器错误"),
    NO_FOUND(404, "资源不存在"),
    FORBIDDEN(403, "无权限"),
    UNAUTHORIZED(401, "未授权或登录已过期"),
    CLIENT_ERROR(400, "客户端错误"),

    USER_NOT_LOGIN(10001, "用户未登录"),
    USER_NOT_EXIST(10002, "用户不存在"),
    USER_LOGIN_FAILED(10003, "用户登录失败"),

    NEED_LOGIN(10004, "需要登录");

    private int code;
    private String message;

    StatusEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }





}
